<script setup lang="ts">
import { ProjectInfo } from '@/ts/interfaces/project.interfaces'

defineProps<{
  item: ProjectInfo
}>()

</script>

<template>
  <v-list-item lines="two" :title="item.name" :subtitle="item.summary" :to="`/app/${item.prjId}`">
    <template v-slot:prepend>
      <v-avatar class="elevation-1" rounded="lg" size="48">
        <v-img :src="item.iconUrl" />
      </v-avatar>
    </template>
    <slot />
  </v-list-item>
</template>
